const express = require('express');
const router = express.Router();
const siteRender = require('../renderpage/site_render');
const isLogin = require('../middleware/isLogin');
const refreshSession = require('../middleware/refreshSession');

router.get('/',isLogin.unLogin,refreshSession,siteRender.index);
router.get('/flowing',isLogin.unLogin,refreshSession,siteRender.flowing);
router.get('/information',isLogin.unLogin,refreshSession,siteRender.information);
router.get('/change',isLogin.unLogin,refreshSession,siteRender.change);
router.get('/detail/:id',isLogin.unLogin,refreshSession,siteRender.detail);

router.get('/login',isLogin.logined,siteRender.login);
router.get('/find',siteRender.find);

module.exports = router;